home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
business
/
aesti967.zip
/
-PRINT.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-07-07
|
2KB
|
97 lines
echo off
cls
if (%1)==(1) goto port1
if (%1)==(2) goto port2
goto Help
:port1
echo.
echo Printing to Port 1
echo ──────────────────
echo There MUST be a printer attached to printer port 1 and the printer
echo MUST be on-line
echo.
echo If printing to Port 1 does not work then try printing to Port 2
echo.
echo.
echo Press any key to start printing or CTRL+C to cancel
echo.
pause>nul
echo.
echo Press CTRL+C or CTRL+BREAK to stop printing
echo.
if exist -manuale.doc goto print1
goto NoFile
:print1
type -manuale.doc>lpt1
goto quit
:port2
echo.
echo Printing to Port 2
echo ──────────────────
echo There MUST be a printer attached to printer port 2 and the printer
echo MUST be on-line
echo.
echo If printing to Port 2 does not work then try printing to Port 1
echo.
echo.
echo Press any key to start printing or CTRL+C to cancel
echo.
pause>nul
echo.
echo Press CTRL+C or CTRL+BREAK to stop printing
echo.
if exist -manuale.doc goto print2
goto NoFile
:print2
type -manuale.doc>lpt2
goto quit
:NoFile
cls
echo.
echo Unable to find -MANUALE.DOC
echo ───────────────────────────
echo.
echo Unable to print the manual as the file -MANUALE.DOC was not found in
echo the current directory, change to the directory where this file can
echo be found and try again
goto Note
:Help
echo.
echo Prints the Help File
echo ────────────────────
echo Prints the help file -MANUALE.DOC to a printer on Port 1 (LPT1) or
echo Port 2 (LPT2), uses a command line option or either 1 or 2
echo.
echo To print to a printer on LPT1 use -PRINT 1
echo To print to a printer on LPT2 use -PRINT 2
echo.
echo If printing to the selected Printer Port does not work then try using
echo a different Port i.e. if you tried 1 first then try 2
echo.
echo If neither of the above works then import -MANUALE.DOC into your word
echo processor, replace all 's with your WP's version of page breaks and
echo then print it from within the WP.
echo.
echo If you are still having problems then get someone who knows about
echo computers to print it out for you !
:Note
echo.
echo Please note that -MANUALE.DOC and -PRINT.BAT must be in the same
echo directory as each other
:quit
echo.